﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp4
{
    class Teacher:Person
    {
        private string title;
        private int wagen;

        public Teacher()
        { 
        }
        public Teacher(int id, string name, char sex, int cardid, int tel, string title, int wagen)
            :base(id,name,sex,cardid,tel)
        {
            this.title = title;
            this.wagen = wagen;
        }
        public void Speck()
        {
            base.SayHi();
            Console.WriteLine("职称:{0}"+"\n"+"工资号:{1}", this.title, this.wagen);
        }
        public string Title
        {
            get { return this.title; }
            set { this.title = value; }
        }
        public int Wagen
        {
            get { return this.wagen; }
            set { this.wagen = value; }
        }
    }
}
